       <div class="main_box">
		<div id="msgbox">
		<?php if( isset($errmsg) && $errmsg->size($page_base) > 0 ) $errmsg->output($page_base); ?>
		</div>
            	<div class="orange_box">
                	
                    <div class="orange_middle">
                    	<div class="orange_title">
                        	<h1>
<?php 
							if(isset($list))
							{
								echo '编辑评单';
							}
							else
							{
								echo '创建评单';
							}
?>
                        	</h1>
                             
                            <p> 评单是任何一位评友基于某个特定主题的一系列推荐。比如"淘宝男装推荐店铺"、"十件女生夏季必淘鞋子"、"淘宝有趣店铺收集", 等等。评单将出现在被推荐的每一种店铺、商城、商品的页面里，按对别人的有用程度排序。一个评单里的收藏总数不得少于3个，也不得超过30个。 
							&nbsp;&nbsp;
							<a href="<?php echo edp_href_link(PAGENAME_HELP, 'subpage=401');?>" target="_blank">查看帮助</a></p>
                        </div>
                        
                    </div>
					
					<div class="list_create_box">
                    	<div class="list_info_box">
							<div>
							<iframe name='hidden_frame' id="hidden_frame" style='display:none'></iframe>
							
							<form action="<?php echo edp_href_link('user_list_create')?>" method="post" name="user_list" target="hidden_frame">						
							
							 <div class="dd">
								 <label>评单名称</label>
								 <input type="text" name="list_name" value="<?php PrintIfSet( "list", 'title'); ?>" style="width:320px"/>
							 </div>
							 <div class="dd">
								 <label>评单介绍</label>
								 <textarea  name="list_desc" class="list_desc"><?php PrintIfSet( 'list', 'description'); ?></textarea>
						     </div>
							 <div class="dd">
							 <label>评单标签</label>
								 <input type="text"  name="list_label" value="<?php PrintIfSet( 'list', 'tags'); ?>" style="width:550px;overflow:auto;"/>
								不同标签之间请用空格分开
							 </div>
							 
						     <?php if( !isset($list) ) {?>
								<input type="hidden" value="create_list" name="action"/>
						  	 <?php }else{ ?>
								<input type="hidden" value="edit_list" name="action"/>
								<input type="hidden" value="<?php echo $_REQUEST['lid'] ?>" name="lid" />
							 <?php } ?>
								
							 <input type="hidden" value="" name="list_content" id="list_content" />
							 <input type="hidden" value="" name="list_priority" id="list_priority" />
							 <input type="hidden" value="" name="list_cate" id="list_cate" />
	
									 
							   <div class="dd" id="item_list_content">
							 	   <label>已选内容</label>
							 	   <div class="selected" id="item_list">
							 	   
								<?php
								  	 if( isset($listItems) )
									{
										$i = 1;
										foreach( $listItems as $k => $v )
										{
								?>
										<div><table width="100%"><tr><td width="30px"><input tag="priority" type="text" value="<?php echo $i ?>"	/>
										<input type="hidden" tag="id" value="<?php echo $v['id'] ?>" />
										<input type="hidden" value="<?php echo $v['cate'] ?>"  tag="cate" /> </td>
										<td align="left"><?php if( $v['cate'] == 0 )
												echo $listShop[$v['id']]['name'];
											  else
											  	echo $listProduct[$v['id']]['name'];
										?></td><td align="right" width="30px">
										<a href="#" tag="delete_item" onclick="delete_item(this)";>删除</a></td></tr></table></div>
								<?php
											$i++;
										}
									}
								?>
								 </div>
										 
							  </div>
							 </form>
							 
							 <div class="dd">
							 	<label>添加内容</label>
							 	<div class="add_list_box">
							 	
							        <div class="add_list_menu">
							            <ul>						            
							                 <li class="tab_current"  id="t1"><span>搜索方式</span></li>
							                 <li class="tab_show"  id="t2"><span>链接方式</span></li>						                                                                 
							             </ul>
							        </div>    
									<div class="add_list_sub_box" id="alb1">	
										<p>搜索方式：输入搜索词进行搜索，然后将结果加入评单。
										<a href="<?php echo edp_href_link(PAGENAME_HELP, 'subpage=401#3');?>" target="_blank">查看帮助</a></p>					        							 	
									 	<form id="search_for_list">
											<select name="search_cate" class="filter_1" id="search_cate">		
												<option selected="selected"  value="shop">店铺</option>
												<option value="mall">商城</option>
												<option value="product">商品</option>										
											</select>			
										   <input name="q" id="keyword" type="text" value="" class="input_6" />
										   <input value="搜索" type="button" class="btn_1" name="search" id="searchbtn"/>
										</form>
										<div class="list_entry_box"  id="search_result" style="display:none"></div>									 	
																								
									</div>
									
									<div class="add_list_sub_box" id="alb2" style="display: none;">	
									<p>链接方式：直接输入店铺或商品的链接地址，加入评单，<font color="red">此方式只支持淘宝</font>。
									<a href="<?php echo edp_href_link(PAGENAME_HELP, 'subpage=401#3');?>" target="_blank">查看帮助</a></p>
										<form id="add_url_list">	
											<select name="add_url_cate" class="filter_1" id="add_url_cate">
													<option selected="selected" value="shop">店铺</option>
													<option value="product">商品</option>										
											</select>
										    <input name="tburl" id="tburl" type="text" value="" class="input_6" />
											<input value="加入评单" type="button" class="btn_1" name="addtburl" id="addtburlbtn"/>
										</form>
										<div class="list_entry_box list_url_entry"  id="add_url_result" style="display:none"></div>								
									</div>								
								</div>
									 
							 </div>
									
													 
							</div>
						</div>
						
						<div style="clear: both;"></div>
						
						<div class="list_submit">
            				<input name="" type="button" id="list_submit"  class="btn_1" value="提交评单"/>
        				</div>
                    </div>                        
                </div>


